package day3;

public class Test7 {
    public static void main(String[] args) {
        int sum = 0;
        int i = 1;
        for (; i <= 10; i++) {
            sum += i;
            if(sum > 20) break;
        }
        System.out.println(i);
    }
}
